{"ast":null,"code":"const genMotionStyle = token => {\n  const {\n    componentCls,\n    motionDurationSlow\n  } = token;\n  const sharedPanelMotion = {\n    '&-enter, &-appear, &-leave': {\n      '&-start': {\n        transition: 'none'\n      },\n      '&-active': {\n        transition: `all ${motionDurationSlow}`\n      }\n    }\n  };\n  return {\n    [componentCls]: {\n      // ======================== Mask ========================\n      [`${componentCls}-mask-motion`]: {\n        '&-enter, &-appear, &-leave': {\n          '&-active': {\n            transition: `all ${motionDurationSlow}`\n          }\n        },\n        '&-enter, &-appear': {\n          opacity: 0,\n          '&-active': {\n            opacity: 1\n          }\n        },\n        '&-leave': {\n          opacity: 1,\n          '&-active': {\n            opacity: 0\n          }\n        }\n      },\n      // ======================= Panel ========================\n      [`${componentCls}-panel-motion`]: {\n        // Left\n        '&-left': [sharedPanelMotion, {\n          '&-enter, &-appear': {\n            '&-start': {\n              transform: 'translateX(-100%) !important'\n            },\n            '&-active': {\n              transform: 'translateX(0)'\n            }\n          },\n          '&-leave': {\n            transform: 'translateX(0)',\n            '&-active': {\n              transform: 'translateX(-100%)'\n            }\n          }\n        }],\n        // Right\n        '&-right': [sharedPanelMotion, {\n          '&-enter, &-appear': {\n            '&-start': {\n              transform: 'translateX(100%) !important'\n            },\n            '&-active': {\n              transform: 'translateX(0)'\n            }\n          },\n          '&-leave': {\n            transform: 'translateX(0)',\n            '&-active': {\n              transform: 'translateX(100%)'\n            }\n          }\n        }],\n        // Top\n        '&-top': [sharedPanelMotion, {\n          '&-enter, &-appear': {\n            '&-start': {\n              transform: 'translateY(-100%) !important'\n            },\n            '&-active': {\n              transform: 'translateY(0)'\n            }\n          },\n          '&-leave': {\n            transform: 'translateY(0)',\n            '&-active': {\n              transform: 'translateY(-100%)'\n            }\n          }\n        }],\n        // Bottom\n        '&-bottom': [sharedPanelMotion, {\n          '&-enter, &-appear': {\n            '&-start': {\n              transform: 'translateY(100%) !important'\n            },\n            '&-active': {\n              transform: 'translateY(0)'\n            }\n          },\n          '&-leave': {\n            transform: 'translateY(0)',\n            '&-active': {\n              transform: 'translateY(100%)'\n            }\n          }\n        }]\n      }\n    }\n  };\n};\nexport default genMotionStyle;","map":{"version":3,"names":["genMotionStyle","token","componentCls","motionDurationSlow","sharedPanelMotion","transition","opacity","transform"],"sources":["/data/messenger.client/node_modules/antd/es/drawer/style/motion.js"],"sourcesContent":["const genMotionStyle = token => {\n  const {\n    componentCls,\n    motionDurationSlow\n  } = token;\n  const sharedPanelMotion = {\n    '&-enter, &-appear, &-leave': {\n      '&-start': {\n        transition: 'none'\n      },\n      '&-active': {\n        transition: `all ${motionDurationSlow}`\n      }\n    }\n  };\n  return {\n    [componentCls]: {\n      // ======================== Mask ========================\n      [`${componentCls}-mask-motion`]: {\n        '&-enter, &-appear, &-leave': {\n          '&-active': {\n            transition: `all ${motionDurationSlow}`\n          }\n        },\n        '&-enter, &-appear': {\n          opacity: 0,\n          '&-active': {\n            opacity: 1\n          }\n        },\n        '&-leave': {\n          opacity: 1,\n          '&-active': {\n            opacity: 0\n          }\n        }\n      },\n      // ======================= Panel ========================\n      [`${componentCls}-panel-motion`]: {\n        // Left\n        '&-left': [sharedPanelMotion, {\n          '&-enter, &-appear': {\n            '&-start': {\n              transform: 'translateX(-100%) !important'\n            },\n            '&-active': {\n              transform: 'translateX(0)'\n            }\n          },\n          '&-leave': {\n            transform: 'translateX(0)',\n            '&-active': {\n              transform: 'translateX(-100%)'\n            }\n          }\n        }],\n        // Right\n        '&-right': [sharedPanelMotion, {\n          '&-enter, &-appear': {\n            '&-start': {\n              transform: 'translateX(100%) !important'\n            },\n            '&-active': {\n              transform: 'translateX(0)'\n            }\n          },\n          '&-leave': {\n            transform: 'translateX(0)',\n            '&-active': {\n              transform: 'translateX(100%)'\n            }\n          }\n        }],\n        // Top\n        '&-top': [sharedPanelMotion, {\n          '&-enter, &-appear': {\n            '&-start': {\n              transform: 'translateY(-100%) !important'\n            },\n            '&-active': {\n              transform: 'translateY(0)'\n            }\n          },\n          '&-leave': {\n            transform: 'translateY(0)',\n            '&-active': {\n              transform: 'translateY(-100%)'\n            }\n          }\n        }],\n        // Bottom\n        '&-bottom': [sharedPanelMotion, {\n          '&-enter, &-appear': {\n            '&-start': {\n              transform: 'translateY(100%) !important'\n            },\n            '&-active': {\n              transform: 'translateY(0)'\n            }\n          },\n          '&-leave': {\n            transform: 'translateY(0)',\n            '&-active': {\n              transform: 'translateY(100%)'\n            }\n          }\n        }]\n      }\n    }\n  };\n};\nexport default genMotionStyle;"],"mappings":"AAAA,MAAMA,cAAc,GAAGC,KAAK,IAAI;EAC9B,MAAM;IACJC,YAAY;IACZC;EACF,CAAC,GAAGF,KAAK;EACT,MAAMG,iBAAiB,GAAG;IACxB,4BAA4B,EAAE;MAC5B,SAAS,EAAE;QACTC,UAAU,EAAE;MACd,CAAC;MACD,UAAU,EAAE;QACVA,UAAU,EAAG,OAAMF,kBAAmB;MACxC;IACF;EACF,CAAC;EACD,OAAO;IACL,CAACD,YAAY,GAAG;MACd;MACA,CAAE,GAAEA,YAAa,cAAa,GAAG;QAC/B,4BAA4B,EAAE;UAC5B,UAAU,EAAE;YACVG,UAAU,EAAG,OAAMF,kBAAmB;UACxC;QACF,CAAC;QACD,mBAAmB,EAAE;UACnBG,OAAO,EAAE,CAAC;UACV,UAAU,EAAE;YACVA,OAAO,EAAE;UACX;QACF,CAAC;QACD,SAAS,EAAE;UACTA,OAAO,EAAE,CAAC;UACV,UAAU,EAAE;YACVA,OAAO,EAAE;UACX;QACF;MACF,CAAC;MACD;MACA,CAAE,GAAEJ,YAAa,eAAc,GAAG;QAChC;QACA,QAAQ,EAAE,CAACE,iBAAiB,EAAE;UAC5B,mBAAmB,EAAE;YACnB,SAAS,EAAE;cACTG,SAAS,EAAE;YACb,CAAC;YACD,UAAU,EAAE;cACVA,SAAS,EAAE;YACb;UACF,CAAC;UACD,SAAS,EAAE;YACTA,SAAS,EAAE,eAAe;YAC1B,UAAU,EAAE;cACVA,SAAS,EAAE;YACb;UACF;QACF,CAAC,CAA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